<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var arr = [1,2,3];
        // var arrSlice = arr.slice(2)
        // console.log(arr,arrSlice) //[1,2,3]  [3]
        // var arrSplice = arr.splice(0,1,5) // arr:[5,2,3]
        // var arrSplice = arr.splice(0,0,6) // arr:[6,1,2,3]
        // var arrSplice = arr.splice(0,2) // arr:[3]
        // console.log(arrSplice,arr)
        //找出二维数组的最大值
        var array = [
            [1,5,3,6,4],
            [8,5,2,6,4],
            [1,55,10,6,44],
            [11,52,32,65,4],
            [1,5,3,8,4],
        ]
        var MaxArray = []
        array.forEach((item,index)=>{
            MaxArray.push(Math.max(...item))
        })
        console.log(MaxArray)

    </script>
</head>
<body>
    
</body>
</html>
